package com.app.service;


import com.app.mapper.PositionMapper;
import com.app.model.PositionModel;
import com.app.model.UserModel;

import java.util.List;

/**
 * @Description: 行业
 * @Author: N
 * @Date: 2022年11月24日10点26分
 */
public interface PositionService {
    /***
     *
     * 根据Id查询
     * @param id
     * @return
     */
    PositionModel getModelById(int id);

    PositionModel getModelByCode(String postCode);

    List<PositionModel> findName(int level, int postType);

    List<PositionModel> getModelListByLevel(int level);

    List<PositionModel> getModelListByFather(UserModel user);

    List<PositionModel> getModelListByFatherCom(UserModel user);

    List<PositionModel> findNameJid(String fatherCode,int postType);

    List<PositionModel> getModelListByFatherId(int fatherId);

    int insert(PositionModel model);

    void update(PositionModel model);

    void deleteByFatherCode(String fatherCode);

    void delete(PositionModel model);

    List<PositionModel> parent();

    List<PositionModel> childLevel();

    List<PositionModel> grandchildLevel();
}
